import { OptionsStatusProps } from '@/types';
import React from 'react';
interface StatusContextType {
  serialNum: number; // 序号
  updateStatus: (key: string, value?: any) => void; //store状态更新方法
  status: OptionsStatusProps;
}

// 导出上下文对象
export const StatusContext = React.createContext<StatusContextType>({
  serialNum: 0,
  updateStatus: () => {},
  status: {} as OptionsStatusProps
});
